package cn.stylefeng.guns.modular.manager.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 常见问题
 * </p>
 *
 * @author yumker
 * @since 2021-01-07
 */
@TableName("flow_news_problem")
public class FlowNewsProblem implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "news_problem_id", type = IdType.AUTO)
    private Long newsProblemId;

    @TableField("service_type")
    private Long serviceType;

    @TableField("title")
    private String title;

    @TableField("news_type_id")
    private Long newsTypeId;

    @TableField("notes")
    private String notes;

    @TableField("watch")
    private Long watch;

    @TableField("detail")
    private String detail;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;
        @TableField(exist = false)
      private String newsTypeName;


    public Long getNewsProblemId() {
        return newsProblemId;
    }

    public void setNewsProblemId(Long newsProblemId) {
        this.newsProblemId = newsProblemId;
    }

    public Long getServiceType() {
        return serviceType;
    }

    public void setServiceType(Long serviceType) {
        this.serviceType = serviceType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getNewsTypeId() {
        return newsTypeId;
    }

    public void setNewsTypeId(Long newsTypeId) {
        this.newsTypeId = newsTypeId;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Long getWatch() {
        return watch;
    }

    public void setWatch(Long watch) {
        this.watch = watch;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getNewsTypeName() {
        return newsTypeName;
    }

    public void setNewsTypeName(String newsTypeName) {
        this.newsTypeName = newsTypeName;
    }

    @Override
    public String toString() {
        return "FlowNewsProblem{" +
        "newsProblemId=" + newsProblemId +
        ", serviceType=" + serviceType +
        ", title=" + title +
        ", newsTypeId=" + newsTypeId +
        ", notes=" + notes +
        ", watch=" + watch +
        ", detail=" + detail +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
